<?php
require_once 'application/library/db/gcDaoFactory.php';
require_once 'application/constant/daoConfig.php';
/**
 * 
 * goods_services_goodsFormulaService
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */

class goods_services_goodsFormulaListService{

    private $objDaoFactory;

    public function __construct(){
        $this->objDaoFactory = gcDaoFactory::getInstance();
    }

    public function pbGetFormulaCount() {
        $objFormulaDao = $this->objDaoFactory->createDao(daoConfig::T_EC_M_FORMULA_DAO);
        $count = $objFormulaDao->pbGetFormulaCount();
        return $count;
    }

    public function pbGetFormula() {
        $objFormulaDao = $this->objDaoFactory->createDao(daoConfig::T_EC_M_FORMULA_DAO);
        $arrFormula = $objFormulaDao->pbGetFormula();
        return $arrFormula;
    }

    public function pbGetSearchCount($strFormulaName) {
        $objFormulaDao = $this->objDaoFactory->createDao(daoConfig::T_EC_M_FORMULA_DAO);
        $intCount = $objFormulaDao->pbGetSearchCount($strFormulaName);
        return $intCount;
    }

    public function pbSearchFormula($strFormulaName) {
        $objFormulaDao = $this->objDaoFactory->createDao(daoConfig::T_EC_M_FORMULA_DAO);
        $arrFormulaInfo = $objFormulaDao->pbSearchFormula($strFormulaName);
        return $arrFormulaInfo;
    }

}
